package com.mxpio.erp.common.inventory.service;

import com.mxpio.erp.common.inventory.entity.WarehouseOrderLine;
import com.mxpio.erp.common.jpa.model.OrderLine;
import com.mxpioframework.common.vo.Result;
import com.mxpioframework.jpa.query.Criteria;
import com.mxpioframework.system.service.BaseService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface WarehouseOrderLineService extends BaseService<WarehouseOrderLine> {

    void handleWarehouseOrderLineQuantity(List<WarehouseOrderLine> warehouseOrderLine);

    void handleToleranceRangeQuantity(List<WarehouseOrderLine> warehouseOrderLine);

    void handleLiveStockQuantity(List<WarehouseOrderLine> warehouseOrderLine);

    void handleTransientFields(List<WarehouseOrderLine> warehouseOrderLines);

    Page<WarehouseOrderLine> listPage(Pageable page, Criteria criteria);

    Result<WarehouseOrderLine> clearOrderLine(String ids);
}
